package com.chengxiaoxiao.service.impl;

import com.chengxiaoxiao.commons.Page;
import com.chengxiaoxiao.dao.ClassesDao;
import com.chengxiaoxiao.dao.impl.ClassesDaoImpl;
import com.chengxiaoxiao.domain.Classes;
import com.chengxiaoxiao.service.ClassesService;

import java.util.List;

public class ClassesServiceImpl implements ClassesService {

    private ClassesDao dao = new ClassesDaoImpl();

    @Override
    public void add(Classes classes) {
        dao.add(classes);
    }

    @Override
    public void update(Classes classes) {
        dao.update(classes);
    }

    @Override
    public void delete(long id) {
        dao.delete(id);
    }

    @Override
    public List get() {
        return dao.get();
    }

    @Override
    public Classes getbyId(long id) {
        return dao.getbyId(id);
    }

    @Override
    public Page getListPage(String num) {
        return null;
    }
}
